Adding check to make sure rev isn't null